package com.extweb4j.core.model;

/**
 * 投票
 * @author Administrator
 *
 */
public class ExtVoteLog extends CoreModel<ExtVoteLog>{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public static ExtVoteLog dao = new ExtVoteLog();
	
	public boolean isVoted(String oid){
		StringBuffer buffer = new StringBuffer();
		buffer.append(" SELECT * FROM ext_vote_log WHERE option_id=?");
		return ExtVoteLog.dao.findFirst(buffer.toString(),oid)==null?false:true;
	}
	
}
